package com.bob.idea.gui.action;

import com.bob.idea.gui.MainFrame;

import java.awt.event.ActionEvent;
import java.awt.event.ItemEvent;

public class ButtonCancelActionListener extends ButtonActionListener{

    /**
     * Invoked when an action occurs.
     *
     * @param e the event to be processed
     */
    @Override
    public void actionPerformed(ActionEvent e) {
        MainFrame.getMainFrame().dispose();

    }

    /**
     * Invoked when an item has been selected or deselected by the user.
     * The code written for this method performs the operations
     * that need to occur when an item is selected (or deselected).
     *
     * @param e the event to be processed
     */
    @Override
    public void itemStateChanged(ItemEvent e) {

    }
}
